package com.itheima.Mapper;

import com.itheima.Pojo.Reward;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface rewardMapper {

    @Select("select * from reward")
    List<Reward> selectAllReward();

    @Delete("delete from reward where record_id = #{reward_id}")
    Integer deleteRewardById(int reward_id);

//    @Insert("insert into reward(record_id,student_id, level,review_status, record_time, description) values( #{recordId},#{studentId}, #{level}, #{recordTime}, ,#{reviewStatus},#{description})")
    Integer insertReward(Reward reward);

    // @Update("update reward set student_id = #{studentId}, level = #{level},
    // record_time = #{recordTime}, description = #{description} where record_id =
    // #{recordId}")
    Integer updateReward(Reward reward);
}